package com.gz.config;//package com.gz.config;
//
//import com.alipay.easysdk.factory.Factory;
//import com.alipay.easysdk.kernel.Config;
//import lombok.Data;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.PostConstruct;
//
//@Data
//@Component
////@ConfigurationProperties(prefix = "alipay")
//public class AliPayConfig2 {
//    private String appId;
//    private String appPrivateKey;
//    private String alipayPublicKey;
//    private String notifyUrl;
//
//
//    @PostConstruct
//    public void init() {
//        // 设置参数（全局只需设置一次）
//        Config config = new Config();
//        config.protocol = "https";
//        config.gatewayHost = "openapi-sandbox.dl.alipaydev.com";
////        config.gatewayHost = "openapi.alipay.com";
//        config.signType = "RSA2";
//        config.appId = "9021000123683915";
//        //应用私钥
//        config.merchantPrivateKey = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDPuDtjBtm2W/H+2rHgo+eZN0dmq4JXf4MNZCr8iPcsiV9aOjm03b60YhRcCjoMU6ai/SexM1hICSaFmSZloYUkIfXO+ULIfK11yOOfoWH4oJskvibNbeuu8zdEM2Z8d543aaQREBVUWDUwzxaLgADZzB0Cnb8YmjevNK0UoDBp20c1JquDJLVRsBKMB45+b7f+2mAIkaokl+/JFgFg2osQmKbboaa42tXB9IFNzuUQ0wEx+9cOMfguEEgGm/+FEMZ2tuK8f/reZUdb+Eb0j63d3icdjeEXY3E7Jx2RWOnkGKYDQQ71EKDUS8LdXZEqIptZXlJX4zTU2FU+5G0eVnshAgMBAAECggEATszXSqPop7ONxF72p//F9mvwHFToJ4VqFARyAkd7bVvX3oTEK4cLt6aVjq0ahF6fkqlzC1gtH3bJNFl7JYb22VRAyfnpieEydMJ3B7HTVtymvnOciMYwaLg/uRG+yW0fimn7IbX2QX8M/q0xIk63A+jZAIsTWaP3h/H1zyNN+nnULw5DN5m7a5P6a+1FUAA11JI0ML0HJ5plzt+Kq4sTRcxv+9YSl4GU+Kqv6l9twMtfx4loifjpSmCTRIh7ibaF4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6wHmxBIanbQuO4k/mS99W1J0/NhEnGOc6Rm4OU3gaQgmopmuqlNAdI1PvFoi5I3sCoxasRoGFsCoQH+RxQRzpCPqc4Nix/h6iQKBgGOoElL3vdPgjHZjhXOBV+WEwz/7ydYf/NCU/9ilyNUq16m5hMd5Y74gPOkRj/FF6BXvFvS8wLdI3Iah6Ljah4yJdIot/UWPu78tAKTACjIZeyRwNihA48LM6aL2Vvk3W5n36oyEW54Z9j+ZG0mtEVfu9SRy7r6gFPq5DQHnDC7BAoGALTBfkfam8rZihaUzu1KYaF2tx8m5I5QCvNGlJuSVO1Lcr5MlHrNmuEC6HzsMs4WgGTvcJoFX9Ya1Ffb7XG6Li81sivAVets+0dQ/qd5R5RHDNXU99xX63406gP8r+ROLPBIvSKbsa/svEZrZInyGWtVVqfaNN2ZOtBrVQZC/VCk=";
//        //支付宝公钥
//        config.alipayPublicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArGXe39fAJ39WAW8mgq35BU900/CC5DVSPJckqy1Oc6sejy3mY3JX/zURjui5lhIGIl8yRqEowpaMPHdA+/XNBt/OToUyZdPlJeA1+cbtaTCYIGSuwEozX7Ket94T5dQUl7RIHClIk8e6ct95IB5c4PAkhidko0gFH5WHCoM/0iQNzbITLNuNtcNiuP1E76T/x/CB6DBFB979WOpNsg/9SNjaoyVAV0SEJ6w0aE/RFL9B6q4egc5/70Q/C6AOH8jamPR5TcyY/f8QXlBrJwdAneHZee1OVjyRoIabXd7cM1YUfcclOE0zl20M2Xyyw5vvlH1TSU+KR2WB9LaVumb/VQIDAQAB";
////        config.alipayPublicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAskBh077buGSESVVpz6RCs7P/vWpXIAjt1jeX4svhv5qy4tObHqjlPmq9JXXMkVsQDZSn2j/MNtRKG3SlNhqJQX/CgcPZ6YlNcerXkRG+wIYAiL70gdO9mCUABat9YVNr2vALvwrpxZY57Wg5+yuZn+L5oT3I8srnBm22JZemntsrxcpv7TUQsijCCULnHcE3W0LB3QA2ayE/gognMi0EYD/9HdWOI1/sX1+4mZ3AVWocnBJt/eQzM8aM/f+z+89Ovlm7QsiPIvFk2+LjWFq2D1INaGy+E/WCG7D/qSYiz4kmh0c4qtlNiBCrnds3n/R//5Je0kwNgVAC7O9eTCm7rQIDAQAB";
//        config.notifyUrl = "http://www.yuebi.online:8087/jhk";
//        Factory.setOptions(config);
//        System.out.println("=======支付宝SDK初始化成功=======");
//    }
//
//}
